package cn.gailvlun.gll.net.base.friend;

import cn.gailvlun.gll.net.ListRes;
import cn.gailvlun.gll.net.base.Profile;
import cn.gailvlun.gll.net.token.Authorization;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;



public interface FriendService {

    
    @Authorization
    @GET("friends/")
    Observable<ListRes<Profile>> getFriends(@Query("page") int page);

    
    @Authorization
    @POST("add_friend/")
    Observable<FriendNotification> addFriend(@Body AddFriendReq addFriendReq);

    
    @Authorization
    @PUT("add_friend/")
    Observable<FriendNotification> ensureAddFriend(@Body EnsureAddFriendReq ensureAddFriendReq);
}
